import { GET_HISTORY, CHANGE_FROM } from '../action'
import { combineReducers } from "redux";

function History(state = ['事务受理', '事务登记'], action) {
  let { type, History } = action;
  switch (type) {
    case GET_HISTORY:
      //处理数据
      state = History;
      return [...state];

    default:
      return [...state];
  }
}

function From(state = '/registerBefore', action) {
  let { type, From } = action;
  switch (type) {
    case CHANGE_FROM:
      //处理数据
      state = From;
      return state;

    default:
      return state;
  }
}



export default combineReducers({
  History,
  From
});




